package com.gph.saviorframework.security.service;

import com.gph.saviorframework.common.model.Org;
import com.gph.saviorframework.base.service.BaseService;

import java.util.List;
import java.util.Map;

public interface OrgService extends BaseService<Org,String>{

    List<Map<String, Object>> find(String parent,String sort, String dir, Map<String, Object> params);

    long count(String parent,Map<String, Object> params);

    List<Map<String, Object>> findByParent(String parent);

    List<Org> findByParent2(String parent);

    List<Map<String, Object>> findByParentEasyUI(String parent);

    List<Map<String, Object>> findByRole(String parent, String role);

    List<Map<String, Object>> findByPosition(String parent, String position);

    /**
     * get key
     * @return
     */
    String getKey();

    boolean checkOrgRelPosition(String orgId,String positionId);

    /**
     * 获取所有的部门编号集合
     * @return
     */
    List<String> getAllIds();

    Map<String, String> getIdNames();
}
